package com.ffyc.resale.model;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class Comment implements Serializable {
    private static final long serialVersionUID = 1L;

    /** ID */
    private Integer id;
    /** 内容 */
    private String content;
    /** 评论人 */
    private Integer userId;
    /** 父级ID */
    private Integer pid;
    private Integer rootId;
    /** 评论时间 */
    private String time;
    /** 关联ID */
    private Integer fid;

    @TableField(exist = false)
    private String userName;
    @TableField(exist = false)
    private String avatar;
    @TableField(exist = false)
    private List<Comment> children;

    @TableField(exist = false)
    private String replyUser;
    @TableField(exist = false)
    private int currentPage;
    @TableField(exist = false)
    private int pageSize;
    @TableField(exist = false)
    private int total;


}
